<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>现金流量</title>
    <jsp:include page="../../import.jsp" flush="true" />
    <style type="text/css">
        .field button {
            height: 18px;
            font-size: 10px;
        }
    </style>
</head>
<body class="iframeBody">
<div class="Wrapper">
    <div class="pageIn2layout">
        <div class="pageIn2L_side">
            <div class="sqPanel">
                <div class="sqPanel_head"></div>
                <div class="sqPanel_body">
                    <ul class="links">
                        <li id="inNav_01" data-src="<%=path%>/customer/cstbscinfo/toFilFinanceDebtDetailPage.do?cstId=${cstId}">资产负债表</li>
                        <li id="inNav_02" data-src="<%=path%>/customer/filFinancePro/toFilFinanceProDetailPage.do?cstId=${cstId}">利润及利润分配表</li>
                        <li id="inNav_03" data-src="<%=path%>/customer/filFinanceCash/toFilFinanceCashDetailPage.do?cstId=${cstId}">现金流量表</li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="pageIn2L_mid">
            <input name="cstId" id="cstId" type="text" style="display: none;" value="${cstId}"/>
            <form id="formSet">
                <div class="fieldset2 clearFix">
                    <div class="caption">
                        <span class="title">报表信息</span>
                    </div>
                    <div class="table table_full">
                        <div class="table_cell labels" style="width: 300px;">
                            <div class="label_item">报表年份</div>
                            <div class="label_item">报表类型</div>
                            <div class="label_item">报表类型细分</div>
                            <div class="label_item">审计事务所名称</div>
                            <div class="label_item">审计人员名称</div>
                            <div class="label_item">审计时间</div>

                            <div class="label_item">销售商品和提供劳务收到的现金</div>
                            <div class="label_item">收到的税费返还</div>
                            <div class="label_item">收到其他与经营活动有关的现金</div>
                            <div class="label_item">经营活动现金流入小计</div>
                            <div class="label_item">购买商品、接受劳务支付的现金</div>
                            <div class="label_item">支付给职工以及为职工支付的现金</div>
                            <div class="label_item">支付的各项税费</div>
                            <div class="label_item">支付其他与经营活动有关的现金</div>
                            <div class="label_item">经营活动现金流出小计</div>
                            <div class="label_item">经营活动产生的现金流量净额</div>
                            <div class="label_item">收回投资所收到的现金</div>
                            <div class="label_item">取得投资收益所收到的现金</div>
                            <div class="label_item">处置固定、无形、其他长期资产所收回的现金净额</div>
                            <div class="label_item">处置子公司及其他营业单位收到的现金净额</div>
                            <div class="label_item">收到其他与投资活动有关的现金</div>
                            <div class="label_item">投资活动现金流入小计</div>
                            <div class="label_item">构建固定资产无形资产和其他长期资产所支付的现金</div>
                            <div class="label_item">投资所支付的现金</div>
                            <div class="label_item">取得子公司及其他营业单位支付的现金净额</div>
                            <div class="label_item">支付其他与投资活动有关的现金</div>
                            <div class="label_item">投资活动现金流出小计</div>
                            <div class="label_item">投资活动产生的现金流量净额</div>
                            <div class="label_item">吸收投资收到的现金</div>
                            <div class="label_item">取得借款收到的现金</div>
                            <div class="label_item">收到其他与筹资活动有关的现金</div>
                            <div class="label_item">筹资活动现金流入小计</div>
                            <div class="label_item">偿还债务所支付的现金</div>
                            <div class="label_item">分配股利、利润或偿付利息所支付的现金</div>
                            <div class="label_item">支付其他与筹资活动有关的现金</div>
                            <div class="label_item">筹资活动现金流出小计</div>
                            <div class="label_item">筹集活动产生的现金流量净额</div>
                            <div class="label_item">汇率变动对现金及现金等价物的影响</div>
                            <div class="label_item">现金及现金等价物净增加额(五)</div>
                            <div class="label_item">期初现金及现金等价物余额</div>
                            <div class="label_item">期末现金及现金等价物余额(六)</div>
                            <div class="label_item">净利润</div>
                            <div class="label_item">资产减值准备</div>
                            <div class="label_item">固定资产折旧、油气资产折耗、生产性生物资产折旧</div>
                            <div class="label_item">无形资产摊销</div>
                            <div class="label_item">长期待摊费用摊销</div>
                            <div class="label_item">待摊费用减少</div>
                            <div class="label_item">预提费用增加</div>
                            <div class="label_item">处置固定资产无形资产和其他长期资产的损失</div>
                            <div class="label_item">固定资产报废损失</div>
                            <div class="label_item">公允价值变动损失</div>
                            <div class="label_item">财务费用</div>
                            <div class="label_item">投资损失</div>
                            <div class="label_item">递延所得税资产减少</div>
                            <div class="label_item">递延所得税负债增加</div>
                            <div class="label_item">存货的减少</div>
                            <div class="label_item">经营性应收项目的减少</div>
                            <div class="label_item">经营性应付项目的增加</div>
                            <div class="label_item">其他</div>
                            <div class="label_item">经营活动产生的现金流量金额</div>
                            <div class="label_item">债务转为资本</div>
                            <div class="label_item">一年内到期的可转换公司债券</div>
                            <div class="label_item">融资租入固定资产</div>
                            <div class="label_item">其他</div>
                            <div class="label_item">现金的期末余额</div>
                            <div class="label_item">现金的期初余额</div>
                            <div class="label_item">现金等价物的期末余额</div>
                            <div class="label_item">现金等价物的期初余额</div>
                            <div class="label_item">现金及现金等价物净增加额</div>

                        </div>
                        <div class="table_cell fields formdiva">
                            <div class="field_item"><input name="belongDate" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item">
                                <select name="reporttype" data-value=" " >
                                    <option value="  " selected="selected">--请选择--</option>
                                    <c:forEach items="${reportTypeList}" var="opt">
                                        <option value="${opt.key}">${opt.value}</option>
                                    </c:forEach>
                                </select>
                                
                            </div>
                            <div class="field_item">
                                <select name="reportsubtype" data-value=" " >
                                    <option value="  " selected="selected">--请选择--</option>
                                    <c:forEach items="${reportsubTypeList}" var="opt">
                                        <option value="${opt.key}">${opt.value}</option>
                                    </c:forEach>
                                </select>
                                
                            </div>
                            <div class="field_item"><input name="auditinstitute" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="auditstaff" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="auditime" type="text" class="ui-textbox" value="" /></div>

                            <div class="field_item"><input name="provideServiceCash" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="taxReturn" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="otherOperate" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="operateIntoTotal" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="providePaymentCash" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="paymentStaffCash" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="payItemTax" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="payProvideCash" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="operateOutTotal" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="operateNet" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="investCash" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="investIncome" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="assetsCash" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="subsiCash" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="otherInvest" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="investInto" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="assetPay" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="investPay" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="subsiCashInvest" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="otherInvestPay" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="investOut" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="investNet" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="absorbInvest" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="loan" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="otherPrepareIn" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="prepareIncomTotal" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="debtPay" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="interestPay" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="otherPreparePay" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="prepareOutTotal" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="prepareNet" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="changeRate" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="cashNet" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="beginCashBalance" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="endCashBalance" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="net" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="assetReduce" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="fixedDep" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="amortizeAsset" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="prepaidFee" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="prepaidReduce" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="holdAdd" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="assetLoss" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="fixedLoss" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="fairValueLoss" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="financeFee" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="investLoss" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="deferr" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="deferrIncrease" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="stockReduce" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="operateIncome" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="operatePay" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="othe" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="operateNetD" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="debtToCapital" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="yearBond" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="finance" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="othe2" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="endBalance" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="beginBalance" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="thingEndBalance" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="thingBeginBalance" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="cashIncrease" type="text" class="ui-textbox" value="" /></div>
                        </div>
                        <div class="table_cell fields formdivb">
                            <div class="field_item"><input name="belongDate" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item">
                                <select name="reporttype" data-value=" " >
                                    <option value="  " selected="selected">--请选择--</option>
                                    <c:forEach items="${reportTypeList}" var="opt">
                                        <option value="${opt.key}">${opt.value}</option>
                                    </c:forEach>
                                </select>
                                
                            </div>
                            <div class="field_item">
                                <select name="reportsubtype" data-value=" " >
                                    <option value="  " selected="selected">--请选择--</option>
                                    <c:forEach items="${reportsubTypeList}" var="opt">
                                        <option value="${opt.key}">${opt.value}</option>
                                    </c:forEach>
                                </select>
                                
                            </div>
                            <div class="field_item"><input name="auditinstitute" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="auditstaff" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="auditime" type="text" class="ui-textbox" value="" /></div>

                            <div class="field_item"><input name="provideServiceCash" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="taxReturn" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="otherOperate" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="operateIntoTotal" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="providePaymentCash" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="paymentStaffCash" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="payItemTax" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="payProvideCash" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="operateOutTotal" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="operateNet" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="investCash" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="investIncome" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="assetsCash" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="subsiCash" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="otherInvest" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="investInto" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="assetPay" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="investPay" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="subsiCashInvest" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="otherInvestPay" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="investOut" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="investNet" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="absorbInvest" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="loan" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="otherPrepareIn" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="prepareIncomTotal" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="debtPay" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="interestPay" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="otherPreparePay" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="prepareOutTotal" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="prepareNet" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="changeRate" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="cashNet" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="beginCashBalance" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="endCashBalance" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="net" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="assetReduce" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="fixedDep" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="amortizeAsset" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="prepaidFee" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="prepaidReduce" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="holdAdd" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="assetLoss" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="fixedLoss" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="fairValueLoss" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="financeFee" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="investLoss" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="deferr" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="deferrIncrease" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="stockReduce" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="operateIncome" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="operatePay" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="othe" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="operateNetD" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="debtToCapital" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="yearBond" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="finance" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="othe2" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="endBalance" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="beginBalance" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="thingEndBalance" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="thingBeginBalance" type="text" class="ui-textbox" value="" /></div>
                            <div class="field_item"><input name="cashIncrease" type="text" class="ui-textbox" value="" /></div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<script type="text/javascript">
    $(function () {
        $('.pageIn2L_side .links').pageInSideLink({currentNav: 'inNav_03'});

        $("#formSet").ligerForm({
            validate: true
        });
        isSwitch(0);
        initFormData();
        SetIframe_height();
    });
    //是否启用输入选择框(1是，0否)
    function isSwitch(type){

        if(type==0){
            $('#formSet select').each(function(){
                var ligeruiid = $(this).attr('ligeruiid');
                liger.get(ligeruiid).setDisabled();
            });
            $('#formSet .ui-textbox').each(function(){
                var ligeruiid = $(this).attr('ligeruiid');
                liger.get(ligeruiid).setDisabled(true);
            });
        }else{
            $('#formSet select').each(function(){
                var ligeruiid = $(this).attr('ligeruiid');
                liger.get(ligeruiid).setEnabled();
            });
            $('#formSet .ui-textbox').each(function(){
                var ligeruiid = $(this).attr('ligeruiid');
                liger.get(ligeruiid).setEnabled(true);
            });
        }
    }
    //初始化数据
    function initFormData(){
        var _cstid=$("#cstId").val();
        if(!_cstid){
            return;
        }
        var _url = '<%=path%>/customer/filFinanceCash/selectCashList.do';
        AjaxUtils.ajaxGet(_url, {cstId:_cstid}, function(msg){
            if(msg.success == 1){
                setFormData(msg.data);//设置数据
            }else{
                UIUtils.alertError(msg.info);
            }
        }, false);
    }
    //赋值
    function setFormData(data){
        if(data != undefined && data !=null && data.length!=0){
            if(data[0] != undefined && data[0]!=null){
                var forma = data[0];
                var objKeys = Object.keys(forma);
                for(var i = 0; i<objKeys.length; i++){
                    if(objKeys[i] != 'id'){
                        var ligeruiid = $(".formdiva [name="+objKeys[i]+"]").attr('ligeruiid');
                        if(ligeruiid) {
                            liger.get(ligeruiid).setValue(forma[objKeys[i]]);
                        }
                    }
                }
            }
            if(data[1] != undefined && data[1]!=null){
                var formb = data[1];
                var objKeys = Object.keys(formb);
                for(var i = 0; i<objKeys.length; i++){
                    if(objKeys[i] != 'id') {
                        var ligeruiid = $(".formdivb [name="+objKeys[i]+"]").attr('ligeruiid');
                        if(ligeruiid) {
                            liger.get(ligeruiid).setValue(formb[objKeys[i]]);
                        }
                    }
                }
            }
        }
    }
</script>
</body>
</html>